package gameEngine;
import classInterfaces.IDots;

public class Dot implements IDots {
	boolean canMoveUp;
	boolean canMoveRight;

	public Dot() {
		this.canMoveRight = false;
		this.canMoveUp = false;
	}
	
	public Dot(IDots iDots) {
		this.canMoveRight = iDots.hasMovedRight();
		this.canMoveUp = iDots.hasMovedUp();
	}

	@Override
	public boolean hasMovedUp() {
		return canMoveUp;
	}

	@Override
	public boolean hasMovedRight() {
		return canMoveRight;
	}

	@Override
	public void moveUp(boolean canMoveUp) {
		this.canMoveUp = canMoveUp;
	}

	@Override
	public void moveRight(boolean canMoveRight) {
		this.canMoveRight = canMoveRight;
	}

}
